package com.henghai.zhenxuan.ui.page.adapter;

import android.content.Context;

import androidx.recyclerview.widget.RecyclerView;

import com.henghai.zhenxuan.data.bean.ProductBean;
import com.henghai.zhenxuan.databinding.AdapterProductItemBinding;
import com.kunminx.binding_recyclerview.adapter.SimpleDataBindingAdapter;

public class ProductListAdapter extends SimpleDataBindingAdapter<ProductBean.RowsBean, AdapterProductItemBinding> {

    public ProductListAdapter(Context context) {
        super(context, com.henghai.zhenxuan.R.layout.adapter_product_item, DiffUtils.getInstance().getProductItemCallback());
    }

    @Override
    protected void onBindItem(AdapterProductItemBinding adapterTaskItemBinding, ProductBean.RowsBean taskBean, RecyclerView.ViewHolder viewHolder) {
        adapterTaskItemBinding.setProduct(taskBean);
    }
}
